package demo.topic15;

/**
 * 单例模式，枚举
 */
public enum Singleton {
    SINGLETON;

    public void method() {
        System.out.println("method");
    }
}
